package com.atguigu.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Repository
@FeignClient(name = "service-cmn", contextId="cmn")
public interface DictFeignClient {
    //获取数据字典名称(双参数)
    @GetMapping("/admin/cmn/dict/getDictName/{dictCode}/{value}")
    public String getDictName(@PathVariable("dictCode") String dictCode, @PathVariable("value") String value);

    //获取数据字典名称(单参数)
    @GetMapping("/admin/cmn/dict/getDictName/{value}")
    public String getDictName(@PathVariable("value") String value);
}
